﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="order_CX.aspx.cs" Inherits="Dryricenet.houTai.order_CX" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style type="text/css">
        .auto-style1 {
            height: 25px;
        }
        .xlk {
            width: 100px;
            height: 20px;
            text-align: center;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#1c232f"
            style="border-collapse: collapse">
            <tbody>
                <tr class="tr2">
                    <td bgcolor="#1c232f" style="padding-left: 5px; height: 25px; text-align: center; color: #ffffff">订单信息
                    </td>
                </tr>
                <tr class="tr1">
                    <td style="padding-left: 5px; height: 25px">查找类别：<asp:DropDownList ID="drp" runat="server" CssClass="xlk">
                        <asp:ListItem>全部</asp:ListItem>
                        <asp:ListItem>订单号</asp:ListItem>
                        <asp:ListItem>姓名</asp:ListItem>
                        <asp:ListItem>电话</asp:ListItem>
                        <asp:ListItem>是否支付</asp:ListItem>
                        <asp:ListItem>是否发货</asp:ListItem>
                        <asp:ListItem>是否收货</asp:ListItem>
                    </asp:DropDownList>
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        &nbsp;<asp:Button ID="Search" runat="server" OnClick="Search_Click" Text="查找" Style='border: solid 1px #000000; color: #666666' />
                        &nbsp;<asp:Button ID="Export" runat="server" OnClick="Export_Click" Text="数据导出EXCEL"
                            Style='border: solid 1px #000000; color: #666666' />
                        &nbsp;<br />
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%" EmptyDataText="未查询到数据" Font-Size="13px" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging">
                            <Columns>
                                <asp:BoundField DataField="OrderID" HeaderText="订单ID">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Ordertitle" HeaderText="订单号">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="OrderName" HeaderText="姓名">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Phone" HeaderText="电话">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Pay" HeaderText="订单金额">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Zf" HeaderText="是否支付">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Fh" HeaderText="是否发货">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Sh" HeaderText="是否收货">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="PayName" HeaderText="支付方式">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Address" HeaderText="订单地址">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Logistics" HeaderText="物流信息">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Note" HeaderText="备注">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Time" HeaderText="时间">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="操作">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemTemplate>
                                        <a href="order_Deliver.aspx?orderid=<%#DataBinder.Eval(Container.DataItem,"OrderID") %>" onclick="return confirm('您确定要发货吗？')">发货</a>
                                        <%--<a href='del.aspx?id=' onclick="return confirm('确定要删除？')">删除</a>--%>
                                        <a href='order_Details.aspx?orderid=<%#DataBinder.Eval(Container.DataItem,"OrderID") %>' target='_self'>详细</a>
                                        <a href='orderDetails_Look.aspx?orderid=<%#DataBinder.Eval(Container.DataItem,"OrderID") %>'>订单项查看</a>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>

                    </td>
                </tr>
                <tr class="tr1">
                    <td bgcolor="#1c232f" style="padding-left: 5px;" class="auto-style1">
                        <asp:Label ID="Label1" runat="server" Text="Label" ForeColor="White"></asp:Label>
                        <input type="button" name="Submit5" value="返回" onclick="javascript:history.back();" />
                        
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
